package org.dromara.application.domain.bo;

import org.dromara.application.domain.AppType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 应用类型业务对象 app_type
 *
 * @author YCJZ
 * @date 2025-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppType.class, reverseConvertGenerate = false)
public class AppTypeBo extends BaseEntity {

    /**
     * 应用类型id
     */
    private Long appTypeId;

    /**
     * 类型名称
     */
    @NotBlank(message = "类型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeName;

    /**
     * 类型编码
     */
    private String typeCategory;

    /**
     * 显示顺序
     */
    private Long orderNum;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
